package com.chinasoft.tw.service.liyipu;

import com.chinasoft.tw.pojo.Info;
import com.chinasoft.tw.service.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class Liyipu implements TrueWord {
    String name;
    List<String> wordList = new ArrayList<>();
    Random random = new Random();

    public Liyipu() {
        this.name = "李宜埔";
        wordList.add("一二三四五，收到请回复");
        wordList.add("For SupurEarth!!!");
    }
    @Override
    public Info getTrueWord() {
        return new Info(name, wordList.get(random.nextInt(wordList.size())));
    }
}

